namespace EFCodeFirst
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("HIN")]
    public partial class HIN
    {
        [Key]
        [Column(Order = 0)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long HIN_ID { get; set; }

        [StringLength(100)]
        public string HIN_CODE { get; set; }

        [StringLength(400)]
        public string HIN_DESCRIPTION { get; set; }

        [StringLength(20)]
        public string HIN_TYPE { get; set; }

        [StringLength(256)]
        public string LICENSE_KEY { get; set; }

        public DateTime? LICENSE_EXP_DATE { get; set; }

        [Key]
        [Column(Order = 1)]
        public DateTime ENTERED { get; set; }

        [Key]
        [Column(Order = 2)]
        [StringLength(30)]
        public string ENTERED_BY { get; set; }

        [Key]
        [Column(Order = 3)]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int VERSION_NUM { get; set; }

        [StringLength(400)]
        public string HIN_ATTR_VALUE { get; set; }
    }
}
